package com.guaoran.consulserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : 孤傲然
 * @description : consul
 * @date :2019/11/22 10:52
 */
@SpringBootApplication
@EnableDiscoveryClient
@RestController
public class ConsulServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsulServerApplication.class,args);
    }


    @GetMapping("/")
    public String hello(){
        return "Hello Word";
    }
}
